package club.zhcs.task.bean;

import java.io.Serializable;
import java.util.concurrent.TimeUnit;

import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Table;

import com.dgj.utils.db.data.Entity;

@Table("t_task")
public class Task extends Entity implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;

	@Name
	@Column("t_name")
	private String name;

	@Column("t_des")
	private String description;

	@Column("t_rate")
	private long rate;

	@Column("t_unit")
	private TimeUnit unit;

	@Column("t_cron")
	private String cron;

	@Column("t_invoke_url")
	private String invokeUrl;

	public String getCron() {
		return cron;
	}

	public void setCron(String cron) {
		this.cron = cron;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getDescription() {
		return description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public long getRate() {
		return rate;
	}

	public void setRate(long rate) {
		this.rate = rate;
	}

	public TimeUnit getUnit() {
		return unit;
	}

	public void setUnit(TimeUnit unit) {
		this.unit = unit;
	}

	public String getInvokeUrl() {
		return invokeUrl;
	}

	public void setInvokeUrl(String invokeUrl) {
		this.invokeUrl = invokeUrl;
	}

}
